using System.ComponentModel.DataAnnotations;

namespace BOMAPI.DTO
{
    public class ManagementQueryDto
    {
        [Range(1, int.MaxValue)]
        public int PageIndex { get; set; } = 1;

        [Range(1, 200)]
        public int PageSize { get; set; } = 10;

        public string? Keyword { get; set; }

        public string? Brand { get; set; }
    }

    public class ManagementResultDto
    {
        public int Id { get; set; }
        public string BOMId { get; set; }
        public string BOMTheme { get; set; }
        public string ProductNumber { get; set; }
        public string ProductName { get; set; }
        public string Specification { get; set; }
        public string ProductId { get; set; }
        public string unit { get; set; }
        public string Brand { get; set; }
        public string DefaultBOM { get; set; }
        public string DailyOutput { get; set; }
        /// <summary>
        /// ���Id�������
        /// </summary>
        public string ItemIds { get; set; }
        /// <summary>
        /// ����Id�������
        /// </summary>
        public string ProcessFlowIds { get; set; }
    }

    public class ManagementCreateDto
    {
        [Required(ErrorMessage = "BOM编号不能为空")]
        public string BOMId { get; set; }

        [Required(ErrorMessage = "BOM主题不能为空")]
        public string BOMTheme { get; set; }

        [Required(ErrorMessage = "成品编号不能为空")]
        public string ProductNumber { get; set; }

        [Required(ErrorMessage = "成品名称不能为空")]
        public string ProductName { get; set; }

        public string? Specification { get; set; }

        public string? ProductId { get; set; }

        public string? unit { get; set; }

        public string? Brand { get; set; }

        public string? DefaultBOM { get; set; }

        public string? DailyOutput { get; set; }

        public string? ItemIds { get; set; }

        public string? ProcessFlowIds { get; set; }
    }
}


